package com.heima.wemedia.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.heima.model.common.dtos.ResponseResult;
import com.heima.model.wemedia.dtos.WmMaterialDto;
import com.heima.model.wemedia.pojos.WmMaterial;
import org.springframework.web.bind.annotation.*;
import org.springframework.web.multipart.MultipartFile;

public interface WmMaterialService extends IService<WmMaterial> {
    /**
     * 图片上传
     * @param file
     * @return
     */
    public ResponseResult upload(MultipartFile file);

    /**
     * 图片列表查询
     * @return
     */
    public ResponseResult list(WmMaterialDto dto);

    /**
     * 收藏、取消收藏
     * @param id
     * @return
     */
    public ResponseResult isCollection(Integer id);

    /**
     * 删除素材
     * @param id
     * @return
     */
    public ResponseResult deletePicture(Integer id);
}
